package com.example.mylsposed;

import static android.widget.Toast.LENGTH_LONG;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (!isModuleActive()) {
            Toast.makeText(this, "模块未启动", LENGTH_LONG).show();
        } else {
            Toast.makeText(this, "模块已启动", LENGTH_LONG).show();
        }
        TextView textView = findViewById(R.id.tv_msg);
        textView.setText(getMessageInfo("w", "w"+isModuleActive()));
    }

    private boolean isModuleActive() {
        return false;
    }

    private String getMessageInfo(String str1, String str2) {
        String str = str1 + "," + str2;
        return str;
    }
}